<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>print - TagLib - Prails API Documentation</title>
    </head>
    <body>
        <h3 class="P4"><a name="_include"><span/></a>print</h3><h4 class="Heading_20_4"><a name="_Description_"><span/></a>Description:</h4>
        <p class="Text_20_body">
			This tag is used to safely print data entered by the user. It is mainly used to avoid XSS attacks based on user input.
        </p>
        <h4 class="Heading_20_4"><a name="_Syntax_"><span/></a>Syntax:</h4>
        <p class="Text_20_body">
            <code><c:print value="{var name}"/></code>
        </p>
        <table border="0" cellspacing="0" cellpadding="0" class="Table12">
            <colgroup>
                <col width="143"/><col width="599"/>
            </colgroup>
            <tr>
                <td style="text-align:left;width:3.283cm; " class="Table12_A1">
                    <p class="Table_20_Contents">
                        {var name}
                    </p>
                </td>
                <td style="text-align:left;width:13.716cm; " class="Table12_B1">
                    <p class="Table_20_Contents">
                        Name of the variable to be printed in a secure manner. It's value is checked for HTML/XML sensitive characters (like &lt; or &gt;) and replaces them by HTML encoded versions (eg. &lt; becomes &amp;lt;)
                    </p>
                </td>
            </tr>
        </table>        
        <h4 class="Heading_20_4"><a name="_Example_"><span/></a>Example:</h4>
        <p class="Text_20_body">
            This example renders a POSTed user input.
        </p>
        <pre>
        	<% $arr_param["test"]["message"] = $_POST["user"]["input"]; %>
        	<c:print value="test.message"/>
        </pre>
    </body>
</html>
